package com.yang.mall.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 广告表
 * </p>
 *
 * @author kadorlin
 * @since 2022-10-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Banner对象", description="广告表")
public class Banner implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "banner_id", type = IdType.AUTO)
    private Long bannerId;

    @ApiModelProperty(value = "广告名称")
    private String bannerName;

    @ApiModelProperty(value = "商品ID")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long productId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人")
    private Long createBy;

    @ApiModelProperty(value = "更新人")
    private Long updateBy;

    @ApiModelProperty(value = "显示状态 0：不显示  1：显示")
    private Integer status;

    @ApiModelProperty(value = "默认值0( 0:未删除 1:逻辑删除)")
    private String delFlag;

    @ApiModelProperty(value = "排序")
    private Integer seq;

    @ApiModelProperty(value = "banner url")
    private String bannerUrl;

}
